Show AllShow All

Remove spaces from the beginning and end of a cell

Use the TRIM function to do this task.

Worksheet example

The example may be easier to understand if you copy it to a blank worksheet.

Show How?

 
1
2
A
Data
BD122
Formula Description (Result)
=TRIM(A2) Removes the spaces from the string " BD122 " (BD112)

Function details

TRIM